<include file="Public/header" />
<div class="page">
  <div class="fixed-bar">
    <div class="item-title">
      <h3>栏目位置</h3>
      <ul class="tab-base">
         <li><a href="{:U('Setting/nav_cat')}"><span>管理</span></a></li>
        <li><a href="JavaScript:void(0);" class="current"><span>添加</span></a></li>
      </ul>
    </div>
  </div>
  <div class="fixed-empty"></div>
  <form id="add_form" method="post" action="{:U('')}" enctype="multipart/form-data" >
    <table class="table tb-type2 nobdb">
      <tbody>
        <input type="hidden" name="navcid" value="{$info['navcid']}" />
        <tr class="noborder">
          <td colspan="2" class="required"><label class="validation" for="name">导航分类名:</label></td>
        </tr>
        <tr class="noborder">
          <td class="vatop rowform"><input type="text" id="name" name="name" value="{$info['name']}" class="txt"></td>
          <td class="vatop tips"></td>
        </tr>

        <tr class="noborder">
            <td colspan="2" class="required"><label class="validation" for="remark">备注:</label></td>
        </tr>
        <tr class="noborder">
            <td class="vatop rowform"><input type="text" id="remark" name="remark" value="{$info['remark']}" class="txt"></td>
            <td class="vatop tips"></td>
        </tr>
      
      </tbody>
      <tfoot>
        <tr class="tfoot">
          <td colspan="2"><a href="JavaScript:void(0);" class="btn" id="submitBtn"><span>保存</span></a></td>
        </tr>
      </tfoot>
    </table>
  </form>
</div>
<script>
//按钮先执行验证再提交表
$(function(){$("#submitBtn").click(function(){
    if($("#add_form").valid()){
     $("#add_form").submit();
	}
	});
});
$("#link_image").change(function(){
    $("#txt_link_image").val($(this).val());
});
</script> 
<include file="Public/footer" />